package com.letv.whatslive.model.dto;

import com.letv.whatslive.model.GuideImageSrc;
import lombok.Getter;
import lombok.Setter;

/**
 * Created by haojiayao on 15-12-30.
 */
@Setter
@Getter
public class GuideDTO {

    private Long startTime;
    private Long endTime;
    private Long showSeconds;
    private String pic;
    private Long updateTime;

    public GuideDTO(){

    }

    // TODO v2.2.1
    public GuideDTO(GuideImageSrc guideImageSrc) {

        this.setStartTime(guideImageSrc.getStartTime());
        this.setEndTime(guideImageSrc.getEndTime());
        this.setShowSeconds(guideImageSrc.getShowTime());
//        this.setPic("http://g3.letv.cn/vod/v1/MTUxLzkvNDQvbGV0di1pdHYyLzAvc3RhdGljL3N0YXRpY2ZpbGUvaW1ncy8yMDE1MTIzMC9jZDU2MDQwMmZmZGYzYTk1ZmEzNzZmYzZmMzU4MDA2NS5wbmc=?b=123456&platid=5&splatid=500");
        this.setPic(guideImageSrc.getPicUrl());
        this.setUpdateTime(guideImageSrc.getUpdateTime());
    }

    public GuideDTO(Long updateTime) {

        this.setStartTime(0L);
        this.setEndTime(0L);
        this.setShowSeconds(0L);
        this.setPic("");
        this.setUpdateTime(updateTime);
    }
}
